package com.naiterui.ehp.bp.domain;
// default package

import javax.persistence.*;
import java.util.Date;

import static javax.persistence.GenerationType.IDENTITY;

/**
 * DocQuickReply entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "dr_quick_reply")
public class QuickReply implements java.io.Serializable {

	/**
	 * 常用语类型：1：会话，2：评价回复
	 */
	public static final int TYPE_CONSULT_SESSION = 0;
	public static final int TYPE_COMMENT_REPLY = 1;

	// Fields

	/**
	 * 
	 */
	private static final long serialVersionUID = -8569676326941716154L;
	private Integer id;
	private Long doctorId;
	private String content;
	private Integer type;
	private Date createdAt;
	private Date changedAt;

	// Constructors

	/** default constructor */
	public QuickReply() {
	}

	/** full constructor */
	public QuickReply(Long doctorId, String content,Integer type,  Date createdAt,
			Date changedAt) {
		this.doctorId = doctorId;
		this.content = content;
		this.type = type;
		this.createdAt = createdAt;
		this.changedAt = changedAt;
	}

	// Property accessors
	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "id", unique = true, nullable = false)
	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@Column(name = "doctor_id")
	public Long getDoctorId() {
		return doctorId;
	}

	public void setDoctorId(Long doctorId) {
		this.doctorId = doctorId;
	}

	@Column(name = "content")
	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	@Column(name = "type")
	public Integer getType() {
		return type;
	}

	public void setType(Integer type) {
		this.type = type;
	}

	@Column(name = "created_at", length = 19)
	public Date getCreatedAt() {
		return createdAt;
	}

	public void setCreatedAt(Date createdAt) {
		this.createdAt = createdAt;
	}

	@Column(name = "changed_at", length = 19)
	public Date getChangedAt() {
		return changedAt;
	}

	public void setChangedAt(Date changedAt) {
		this.changedAt = changedAt;
	}

}